Skip to content

Handle empty custom spelling configurations - #326

Open
codebanditssss wants to merge 1 commit into
AssemblyAI:masterfrom
codebanditssss:fix/empty-custom-spelling
Open

codebanditssss wants to merge 1 commit into
AssemblyAI:masterfrom
codebanditssss:fix/empty-custom-spelling

Conversation

@codebanditssss

Copy link
Copy Markdown

Fixes #323

Make the custom-spelling getter test the accumulated mapping rather than an unassigned loop variable. Normalize empty mappings to None while preserving nonempty mappings and merge behavior. Bump the version to 1.10.13 as required by CI.

Validation under Python 3.12 with Pydantic 1.10.26 and 2.12.5:

  • Before: 4 new regressions failed, 4 passed. After: all 8 pass.
  • Full unit suite: 1,042 passed in each environment, with no skips.
  • Tests cover empty construction/setters, clearing, None, empty merges, nonempty merges, and duplicate-key replacement.
  • Changed-file Ruff/format and whitespace checks pass. Mypy retains the same pre-existing types.py errors: 7 under v1, 8 under v2. No new diagnostics or suppressions.

No live API calls were made. The broader Python/tox matrix and service smoke tests were not run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reading accepted empty custom spelling settings raises UnboundLocalError

1 participant